package com.foxie.method;

public class MethodDemo1 {
    public static void main(String[] args) {
      int sum = getSum(10,20);
      System.out.println(sum);
      System.out.println("------------------------------");

    }
    //定义一个方法，求任意两个整数的和并返回
    public static int getSum(int a,int b) {
        return a + b;
    }
}

